import request from '@/utils/request'

// 获取单位物流设置
export function getLogisticSet() {
  return request({
    url: '/company/company/logistic/config/get',
    method: 'get'
  })
}

// 设置单位物流配置
export function updateLogisticSet(data) {
  return request({
    url: '/company/company/logistic/config/update',
    method: 'post',
    data
  })
}

// 获取中药剂型列表
export function getDosageformList(query) {
  return request({
    url: '/tcm/dosageform/list',
    method: 'get',
    params: query
  })
}

// 新增中药剂型
export function addDosageform(data) {
  return request({
    url: '/tcm/dosageform/add',
    method: 'post',
    data
  })
}

// 编辑中药剂型
export function updateDosageform(data) {
  return request({
    url: '/tcm/dosageform/update',
    method: 'post',
    data
  })
}

// 删除中药剂型
export function deleteDosageform(data) {
  return request({
    url: '/tcm/dosageform/delete',
    method: 'post',
    data
  })
}
